package cn.tradewin.advisor.persist.mapper;

import java.util.List;

import cn.tradewin.advisor.persist.model.Roles;
import cn.tradewin.advisor.persist.model.UserRolesExample;
import cn.tradewin.advisor.persist.model.UserRolesKey;

public interface UserRolesMapper {

	int deleteByPrimaryKey(UserRolesKey key);
	
	int deleteRolesFromUser(String id);

	int insert(UserRolesKey record);

	List<UserRolesKey> selectByExample(UserRolesExample example);

	List<Roles> selectAssignedRolesForAccount(String id);

	List<Roles> selectAvailableRolesForAccount(String id);

}